#include #include using namespace std; //void main() //{ // //ostream cout // //handle to a file - variable that represents a file // ofstream fout; // fout.open("junk", ios_base::app); // // int i = 234; // fout << "Stuff"; // fout << i; // // fout.close(); // //} //void main() //{ // //ostream cout // //handle to a file - variable that represents a file // ifstream fin; // fin.open("170.cpp"); // // char line[10000]; // // //fin >> line; // do // { // fin.getline(line,10000); // //fin >> line; // cout << line << endl; // } // while(!fin.eof()); // // fin.close(); // //} void main() { char fileIn[100]; char fileOut[100]; cin.getline(fileIn,100); cin.getline(fileOut,100); ifstream fin(fileIn); ofstream fout(fileOut); char c; do { c = fin.get(); fout << c; } while(!fin.eof()); }